function location(check){
	var sw = screen.width;
	var sh = screen.height;
	switch(check){
		default :
			var locW = (sw -610)/2;
			var locH = (sh -415)/2;
			break;
	}
	return {LocW:locW, LocH:locH};
}
function popPage(check){
	var locWH = location(check);
	var locW = locWH.LocW;
	var locH = locWH.LocH;
	
	switch(check){
		case 'employee' : 
			window.open("/stock/pages/system/toSystemJsp.do?method=toEmployee","newwindow","height=415, width=610, top="+locH+", left="+locW+", toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no");
			break;
		case 'inout' : 
			window.open("/stock/pages/system/toSystemJsp.do?method=toInOut","newwindow","height=415, width=610, top="+locH+", left="+locW+", toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no");
			break;			
		case 'operater' : 
			window.open("/stock/pages/system/toSystemJsp.do?method=toOperater","newwindow","height=415, width=610, top="+locH+", left="+locW+", toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no");
			break;		
		case 'storehouse' : 
			window.open("/stock/pages/system/toSystemJsp.do?method=toStorehouse","newwindow","height=415, width=610, top="+locH+", left="+locW+", toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no");
			break;		
		case 'merchandise' : 
			window.open("/stock/pages/system/toSystemJsp.do?method=toMerchandise","newwindow","height=415, width=610, top="+locH+", left="+locW+", toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no");
			break;
	}
}